package com.itheima.inner5;

public class Inner5 {
    public static void main(String[] args) {
        Singger singger = new Singger() {
            public void sing() {
                System.out.println("唱一首");
            }

            @Override
            public void jump() {

            }
        };
        singger.sing();

        new Singger() {

            @Override
            public void sing() {
                System.out.println("唱两首");
            }

            @Override
            public void jump() {

            }
        }.sing();
        singger.sing();
    }

}


interface Singger {

    void sing();
    void jump();
}